package com.fulu.game.bi.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * 陪玩场景-派单厅
 */
@Getter
@AllArgsConstructor
public enum DataTypeEnum {
    ALL("1","全部"),
    EACH("2","单个"),
    ;

    private String type;
    private String name;

    public static DataTypeEnum getEnum(String type) {
        for(DataTypeEnum e :  DataTypeEnum.values()){
            if(Objects.equals(e.getType(),type)){
                return e;
            }
        }
        return null;
    }
}
